package com.yunfeisoft.business.dao.inter;

import com.applet.base.BaseDao;
import com.yunfeisoft.business.model.SmsFlashPromotionProductRelation;
import com.applet.utils.Page;

import java.util.List;
import java.util.Map;

/**
 * ClassName: SmsFlashPromotionProductRelationDao
 * Description: 商品限时购与商品关系表Dao
 * Author: Jackie liu
 * Date: 2020-06-02
 */
public interface SmsFlashPromotionProductRelationDao extends BaseDao<SmsFlashPromotionProductRelation, String> {

    public Page<SmsFlashPromotionProductRelation> queryPage(Map<String, Object> params);

    public boolean isDupProduct(String id, String flashPromotionId, String flashPromotionSessionId, String productId);

    List<SmsFlashPromotionProductRelation> queryFlashPromotionProduct();

    List<SmsFlashPromotionProductRelation> queryFlashPromotionProductIndex(int limit);
}